export namespace main {
	
	export class Connection {
	    id: number;
	    connect_type?: string;
	    name: string;
	    db_path?: string;
	    host?: string;
	    port?: number;
	    username?: string;
	    password?: string;
	    database?: string;
	
	    static createFrom(source: any = {}) {
	        return new Connection(source);
	    }
	
	    constructor(source: any = {}) {
	        if ('string' === typeof source) source = JSON.parse(source);
	        this.id = source["id"];
	        this.connect_type = source["connect_type"];
	        this.name = source["name"];
	        this.db_path = source["db_path"];
	        this.host = source["host"];
	        this.port = source["port"];
	        this.username = source["username"];
	        this.password = source["password"];
	        this.database = source["database"];
	    }
	}
	export class Field {
	    Field?: string;
	    Type?: string;
	    Null?: string;
	    Key?: string;
	    Default?: string;
	    Extra?: string;
	    readonly?: boolean;
	
	    static createFrom(source: any = {}) {
	        return new Field(source);
	    }
	
	    constructor(source: any = {}) {
	        if ('string' === typeof source) source = JSON.parse(source);
	        this.Field = source["Field"];
	        this.Type = source["Type"];
	        this.Null = source["Null"];
	        this.Key = source["Key"];
	        this.Default = source["Default"];
	        this.Extra = source["Extra"];
	        this.readonly = source["readonly"];
	    }
	}

}

